#include<stdio.h>
int removeDuplicates(int* nums, int numsSize)
{
    int des = 0;
    int scr = des + 1;
    while (scr < numsSize)
    {
        if (nums[scr] != nums[des] && ((des++) != scr))
        {
            nums[des] = nums[scr];
        }
        scr++;
    }
    return des + 1;
}
int main()
{
    int a[3] = { 1,1,2 };
    int i = removeDuplicates(a, 3);
    printf("%d", i);
    return 0;
}